// SBCollection_BPA.cpp: implementation of the CSBCollection_BPA class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "../../Include/Swi/SBCollection_BPA.h"

//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

CSBCollection_BPA::CSBCollection_BPA()
{

}

CSBCollection_BPA::~CSBCollection_BPA()
{

}

CSB_BPA* CSBCollection_BPA::GetFirstSB()
{
	return (CSB_BPA*)CCardCollection_BPA::GetFirstCard();
}

CSB_BPA* CSBCollection_BPA::Traverse(CSB_BPA *pSB, int nDirection)
{
	return (CSB_BPA*)CCardCollection_BPA::Traverse(pSB,nDirection);
}

CSB_BPA* CSBCollection_BPA::GetSB(char *strBusName, double dkV, char nID)
{
	CSB_BPA tempSB;
	strcpy(tempSB.m_strName,strBusName);
	tempSB.m_dkV = dkV;
	tempSB.m_chID = nID;
	return (CSB_BPA*)CCardCollection_BPA::GetCard(&tempSB);
}